package com.microservices.auth.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;

/**
 * 组织表
 *
 * @author daiqiaohong
 * @since 2025年1月13日
 */
@Getter
@Setter
@TableName("organization")
@Schema(description = "组织表")
public class OrganizationEntity extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableField("organization_code")
    @Schema(description = "组织Code")
    private String organizationCode;

    @TableField("organization_name")
    @Schema(description = "组织名称")
    private String organizationName;

    @TableField("parent_id")
    @Schema(description = "父级ID")
    private Long parentId;

    @TableField("description")
    @Schema(description = "组织描述")
    private String description;

    @TableField("status")
    @Schema(description = "状态（0正常 1停用）")
    private int status;

}
